import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import {HelloComponent} from './hello/hello.component';
import {WorldComponent} from './world/world.component';
import {PageNotFoundComponent} from './not-found.component';

const appRoutes: Routes = [
  {path: '', redirectTo: '/hello', pathMatch: 'full'},
  {path: 'hello', loadChildren: './hello/hello.module#HelloModule'},
  {path: 'getpic', loadChildren: './getpic/getpic.module#GetpicModule'},
  {path: 'getpic2', loadChildren: './getpic2/getpic2.module#Getpic2Module'},
  {path: 'signature', loadChildren: './signature/signature.module#SignatureModule'},
  {path: '**', component: PageNotFoundComponent}

];

@NgModule({
  imports: [
    RouterModule.forRoot(
      appRoutes,
      {
        enableTracing: true, // <-- debugging purposes only
      }
    )
  ],
  exports: [
    RouterModule
  ],
  providers: []
})
export class AppRoutingModule {
}
